package cn.com.demo.tp40;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages = "cn.com.demo.tp40.mapper")
@EnableTransactionManagement
@EnableDiscoveryClient
@EnableDistributedTransaction
@EnableFeignClients(basePackages = "cn.com.demo.tp40.service.feign")
@RefreshScope
public class Start40 {
    public static void main(String[] args) {
        SpringApplication.run(Start40.class,args);
    }
}
